php utf 8 sqlsrv

36

php utf-8 -

header('Content-Type: text/html; charset=utf-8');

php utf 8 sqlsrv -

$serverName="(local)";
    $connetionInfo = array("DataBase"=>"your db","UID"=>"username","PWD"=>"pass",
                           "CharacterSet" => "UTF-8");<---------------this
    $this->dblink=sqlsrv_connect($serverName,$connetionInfo);

Comments

Submit
0 Comments